'use strict';

const log = require('npmlog');

log.level = process.env.LOG_LEVEL ? process.env.LOG_LEVEL : 'info';
log.heading = 'imooc';

// 添加了addLevel, 就可以 log.success('xxxx')
log.addLevel('success', 2000, { fg: 'green', bold: true })

module.exports = log;
